package org.dromara.system.domain.vo;

import java.util.Date;
import org.dromara.system.domain.SysMessage;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;



/**
 * 系统管理-消息通知视图对象 sys_message
 *
 * @author LionLi
 * @date 2024-03-28
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysMessage.class)
public class SysMessageVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private String id;

    /**
     * 消息发送者id
     */
    @ExcelProperty(value = "消息发送者id")
    private Long sendId;

    /**
     * 消息接收者id
     */
    @ExcelProperty(value = "消息接收者id")
    private Long recordId;

    /**
     * 门店id
     */
    @ExcelProperty(value = "门店id")
    private Long storeId;

    /**
     * 提示内容
     */
    @ExcelProperty(value = "提示内容")
    private String alert;


    /**
     * 标题
     */
    @ExcelProperty(value = "标题")
    private String title;

    /**
     * 消息类型
     * NOTICE_RECEIVE_TASK：收到巡店任务，
     * NOTICE_RECEIVE_TASK_DELETE：巡店任务被删除，
     * NOTICE_CREATE_TASK_DONE：巡店任务完成，
     * NOTICE_PATROL_REPORT_CORRECTING：收到待整改报告，
     * NOTICE_PATROL_REPORT_VALIDATING：收到待审核报告，
     * POS_ABNORMAL_WARNING：收银异常预警，
     * NOTICE_WAIT_REVISIT：待回访通知，
     * SNAP_PATROL_ISSUE_MSH_PUSH：抓拍巡检问题通知
     * @see org.dromara.common.core.enums.NoticeMessageType
     */
    @ExcelProperty(value = "NOTICE_RECEIVE_TASK：收到巡店任务，NOTICE_RECEIVE_TASK_DELETE：巡店任务被删除，NOTICE_CREATE_TASK_DONE：巡店任务完成，NOTICE_PATROL_REPORT_CORRECTING：收到待整改报告，NOTICE_PATROL_REPORT_VALIDATING：收到待审核报告，POS_ABNORMAL_WARNING：收银异常预警，NOTICE_WAIT_REVISIT：待回访通知，SNAP_PATROL_ISSUE_MSH_PUSH：抓拍巡检问题通知")
    private String type;

    /**
     * 阅读状态0：未读，1：已读
     */
    @ExcelProperty(value = "阅读状态0：未读，1：已读")
    private String status;

    /**
     * 消息内容
     */
    @ExcelProperty(value = "消息内容")
    private String messageContent;

    /**
     * 地址
     */
    @ExcelProperty(value = "地址")
    private String url;

    /**
     * 阅读时间
     */
    @ExcelProperty(value = "阅读时间")
    private Date readTime;

    /**
     * 任务开始时间
     */
    private Long taskStartTime;

    /**
     * 任务结束时间
     */
    private Long taskEndTime;
}
